import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import AutoImport from 'unplugin-auto-import/vite'

export default defineConfig({
    plugins: [
        uni(),
        // 自动导入配置
        AutoImport({
            imports:[
                // 预设
                'vue',
                'uni-app',
                // 自定义组件或api自动导入配置
                {
                    '@/request/api':['http'],   //导入request请求
                    '@/request/uploadFile':['uploadFile'],
                }
            ]
        })
    ]
})
